package com.kaoshi.service;

import com.github.pagehelper.PageInfo;
import com.kaoshi.pojo.News;
import org.springframework.stereotype.Service;

@Service
public interface NewsService {
    //分页
    PageInfo<News> getNews(Integer page, Integer pageSize);


    News getNameNews(String name);

    News getIdNews(int id);

    //搜索查询咨询
    PageInfo<News> selectlinkTitleNews(String title,Integer page, Integer pageSize);

    //增加咨询
    int addNew(News news);

    //修改咨询
    int updateNew(News news);

    //删除咨询
    int deleteNew(int id);
}
